<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>2-33vue生命周期之页面挂载</title>
</head>
<body>
<div id="app">
    {{msg}}
</div>
</body>
<script src="./js/vue.js"></script>
<script>
    new Vue({
        el: '#app',
        data: {
            msg: 'zhangsan'
        },
        beforeMount() {
            console.log("mount instance before")
            console.log(this.$el.innerHTML)
        },
        mounted() {
            console.log("mounted instance after")
            console.log(this.$el.innerHTML)
        }
    })
</script>
</html>